// public: 自己 自己的子类  和其他类都能访问
// protected： 自己和自己子类能访问，其他类不能访问
// private 自己能访问，子类和其他类不能访问
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
// 定义父类
var Father = /** @class */ (function () {
    function Father(name, age, money) {
        this.name = name;
        this.age = age;
        this.money = money;
    }
    Father.prototype.toString = function () { console.log('Father'); };
    Father.prototype.getName = function () {
        return this.name;
    };
    Father.fatherName = 'fatherName';
    return Father;
}());
var Child = /** @class */ (function (_super) {
    __extends(Child, _super);
    function Child(name, age, money) {
        // 继承自父类
        return _super.call(this, name, age, money) || this;
    }
    Child.prototype.toString = function () {
        _super.prototype.toString.call(this);
        console.log('Child');
    };
    Child.prototype.desc = function () {
        console.log(this.name, this.age);
    };
    Child.childName = 'childName';
    return Child;
}(Father));
var father = new Father('zhufeng', 11, 1);
console.log(father, 'father');
